[%if count($array)>0%]
<table class="table table-hover">
	<thead>
		<tr class="bg_feishe kill_copy">
			<th class="text-center table_width_60">[%pack:public_pack-espcms_lable_select_name%]</th>
			<th class="text-center table_width_100 sort_field" sort-field="oid">[%pack:public_pack-espcms_lable_id_name%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_ordersn%]</th>
			<th class="text-center">[%pack:member_pack-espcms_lable_user_id%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_consignee%]</th>
			<th class="text-right">[%pack:order_pack-espcms_order_productmoney%]</th>
			<th class="text-right">[%pack:order_pack-espcms_order_total%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_addtime%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_isinvoice%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_ispay%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_isshipping%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_ordertype%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_islock%]</th>
			<th class="text-center table_width_200">[%pack:public_pack-espcms_lable_control_name%]</th>
		</tr>
	</thead>
	<tbody id="sortable">
		[%forlist from=$array key=i%]
		<tr data-id="[%$array[i].oid%]" class="selecticon">
			<td class="text-center">
				[%if $array[i].islock==0%]
				<input type="checkbox" name="select_id" class="select_id" value="[%$array[i].oid%]"/>
				[%else%]
				<input type="checkbox" name="select_id" class="select_id" value="0" disabled/>
				[%/if%]
			</td>
			<td class="text-center">[%$array[i].oid%]</td>
			<td class="text-center">[%$array[i].ordersn%]</td>
			<td class="text-center">[%if $array[i].username%][%$array[i].username%][%else%]/[%/if%]</td>
			<td class="text-center">[%$array[i].consignee%]</td>
			<td class="text-right">[%$array[i].productmoney|espcms_format_money(2)%]</td>
			<td class="text-right">[%$array[i].orderamount|espcms_format_money(2)%]</td>
			<td class="text-center">[%$array[i].addtime|espcms_timeformat(9)%]</td>
			<td class="text-center">
				[%if $array[i].isinvoice==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-danfei f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].ispay==0%]<span class="text-orange strong">[%pack:order_pack-espcms_order_ispay_0%]</span>[%/if%]
				[%if $array[i].ispay==1%]<span class="text-green">[%pack:order_pack-espcms_order_ispay_1%]</span>[%/if%]
				[%if $array[i].ispay==2%]<span class="text-danfei">[%pack:order_pack-espcms_order_ispay_2%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].isshipping==0%]<span class="text-orange strong">[%pack:order_pack-espcms_order_isshipping_0%]</span>[%/if%]
				[%if $array[i].isshipping==1%]<span class="text-green">[%pack:order_pack-espcms_order_isshipping_1%]</span>[%/if%]
				[%if $array[i].isshipping==2%]<span class="text-danfei">[%pack:order_pack-espcms_order_isshipping_2%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].ordertype==0 || $array[i].ordertype==6%]<span class="text-danfei">[%pack:order_pack-espcms_order_ordertype_0%]</span>[%/if%]
				[%if $array[i].ordertype==1%]<span class="text-orange strong">[%pack:order_pack-espcms_order_ordertype_1%]</span>[%/if%]
				[%if $array[i].ordertype==2%]<span class="text-green">[%pack:order_pack-espcms_order_ordertype_2%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].islock==0%]<span class="text-green">[%pack:order_pack-espcms_order_islock_0%]</span>[%/if%]
				[%if $array[i].islock==1%]<span class="text-danfei">[%pack:order_pack-espcms_order_islock_1%]</span>[%/if%]
			</td>
			<td class="text-center kill_copy">
				<button type="button" class="btn btn-green btn-padding10 btn-xs espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-file-text-o" tab_name="[%pack:order_pack-espcms_order_button_view%]（[%$array[i].ordersn%]）" tab_url="[%$array[i].view%]">[%pack:botton_pack-espcms_botton_view%]</button>
				[%if @this->power('editOrder')%]
				<div class="btn-group">
					<button type="button" class="btn btn-addblue btn-padding10 dropdown-toggle btn-xs" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">[%pack:order_pack-espcms_order_button_set%] <span class="caret"></span></button>
					<ul class="dropdown-menu list_menu">
						[%if $array[i].ispay==0 && @this->power('addOrderFinance') %]
						<li><a class="espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-file-text-o" tab_name="[%pack:order_pack-espcms_order_button_add_payreceipt%]" tab_close="false" tab_url="[%$array[i].addPay%]"><span class="espcms_icon_fa espcms_icon_fa-file-text-o" aria-hidden="true"></span>[%pack:order_pack-espcms_order_button_add_payreceipt%]</a></li>
						[%/if%]
						[%if $array[i].ispay==1 && @this->power('addOrderFinance') && $array[i].islock==0%]
						<li><a class="espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-file-text-o" tab_name="[%pack:order_pack-espcms_order_button_add_payreceipt%]" tab_close="false" tab_url="[%$array[i].addPay%]"><span class="espcms_icon_fa espcms_icon_fa-file-text-o" aria-hidden="true"></span>[%pack:order_pack-espcms_order_button_add_payreceipt2%]</a></li>
						[%/if%]
						[%if @this->power('addOrderExpress') %]
						<li><a class="espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-file-text-o" tab_name="[%pack:order_pack-espcms_order_button_add_shipreceipt%]" tab_close="false" tab_url="[%$array[i].addExpress%]"><span class="espcms_icon_fa espcms_icon_fa-file-text-o" aria-hidden="true"></span>[%pack:order_pack-espcms_order_button_add_shipreceipt%]</a></li>
						[%/if%]
						[%if @this->power('addOrderExpress') || @this->power('addOrderFinance') || $array[i].ispay<2%]
						<li role="separator" class="divider"></li>
						[%/if%]
						[%if @this->power('setOrder')%]
							[%if $array[i].islock==1%]
							<li><a class="info_set" data-id="[%$array[i].oid%]" set-field="islock" set-value="0" set-message="[%pack:order_pack-espcms_order_unlock_message%]"><span class="espcms_icon_fa espcms_icon_fa-unlock-alt" aria-hidden="true"></span>[%pack:order_pack-espcms_order_button_unlock%]</a></li>
							[%else%]
							<li><a class="info_set" data-id="[%$array[i].oid%]" set-field="islock" set-value="1" set-message="[%pack:order_pack-espcms_order_lock_message%]"><span class="espcms_icon_fa espcms_icon_fa-lock" aria-hidden="true"></span>[%pack:order_pack-espcms_order_button_lock%]</a></li>
							[%/if%]
							<li role="separator" class="divider"></li>
						[%/if%]
						<li><a href="[%$array[i].print%]" target="_blank"><span class="espcms_icon_fa espcms_icon_fa-print" aria-hidden="true"></span>[%pack:order_pack-espcms_order_button_print%]</a></li>
						<li><a href="[%$array[i].print_ship%]" target="_blank"><span class="espcms_icon_fa espcms_icon_fa-print" aria-hidden="true"></span>[%pack:order_pack-espcms_order_button_print_ship%]</a></li>
					</ul>
				</div>
				[%if $array[i].islock==0%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:order_pack-espcms_order_button_edit%]" tab_close="false" tab_url="[%$array[i].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
				[%/if%]
				[%/if%]
			</td>
		</tr>
		[%/forlist%]
	</tbody>
</table>
[%else%]
<table class="table table-hover" id="tablelist">
	<tbody>
		<tr class="selecticon">
			<td class="text-center bort0" colspan="20">[%pack:public_pack-espcms_no_infomessage%]</td>
		</tr>
	</tbody>
</table>
[%/if%]